const dotenv = require('dotenv');
dotenv.config();
var router = require('./router');
app = router;


var server = app.listen(11024, async opt=> {
	var host = "127.0.0.1"
	var port = server.address().port
	console.log("启动:" + (new Date()) + "，访问地址为 http://" + host + ":" + port)
})






process.on('uncaughtException', function(err) {
	log.write("全局Exception:", err.message)

}) //监听未捕获的异常

process.on('unhandledRejection', function(err, promise) {
	console.log(err)
	log.write("全局Rejection:", err.message)
}) //监听Promise没有被捕获的失败函数
